package com.osgix.common.exception;

/**
 * 自定义改进的Exception对象 覆写了 fillInStackTrace方法 1. 不填充stack 2. 取消同步
 */
public abstract class AbsRuntimeExecption extends RuntimeException implements SysExecption {

	protected String sysErrorCode;
	protected String errorMessage;

	@Override
	public Throwable fillInStackTrace() {
		return this;
	}

	public String getMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public String getSysErrorCode() {
		return this.sysErrorCode;
	}

	public void setSysErrorCode(String sysErrorCode) {
		this.sysErrorCode = sysErrorCode;
	}

	public AbsRuntimeExecption() {
		super();
	}

	public AbsRuntimeExecption(String message) {
		super(message);
	}

	public AbsRuntimeExecption(Throwable cause) {
		super(cause);
	}

	public AbsRuntimeExecption(String message, Throwable cause) {
		super(message, cause);
	}
}